package com.scf.enterprise;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = "com.scf")
@RefreshScope //开启nacos的动态刷新，实时获取nacos中的配置
@EnableDiscoveryClient
@MapperScan("com.scf.enterprise.mapper")
//扫面feign接口，生成实现类
@EnableFeignClients(basePackages = "com.scf.service")
public class EnterpriseApplication {

    public static void main(String[] args) {
        SpringApplication.run(EnterpriseApplication.class, args);
    }

}
